<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="a.css">
    <title>Document</title>
</head>

<body>
    <canvas id="canvas">

    </canvas>
    <div id="actions" class="actions">
        <button id="eraser">橡皮</button>
        <button id="brush">画笔</button>
    </div>
    <script type="text/javascript" src="a.js"></script>
</body>
</html>